// lib/models/sku.dart
import 'package:json_annotation/json_annotation.dart';
part 'sku.g.dart';

@JsonSerializable()
class Sku {
  final int id;
  final String skuCode;
  final double price;
  final int stock;
  final int status;
  final String imageUrl;
  final int productId;

  Sku({
    required this.id,
    required this.skuCode,
    required this.price,
    required this.stock,
    required this.status,
    required this.imageUrl,
    required this.productId,
  });

  factory Sku.fromJson(Map<String, dynamic> json) => _$SkuFromJson(json);
  Map<String, dynamic> toJson() => _$SkuToJson(this);
}
